package com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.action;

import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.tjsinfo.tjsoa.common.SessionUser;
import com.tjsinfo.tjsoa.system.bo.ISystemUserBo;
/**
 * 流程跟踪表单控制
 * @author Administrator
 *
 */
public class FlowGenZongFormAction extends Action{
	private ISystemUserBo systemUserBo;
	
	


	public ISystemUserBo getSystemUserBo() {
		return systemUserBo;
	}




	public void setSystemUserBo(ISystemUserBo systemUserBo) {
		this.systemUserBo = systemUserBo;
	}




	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// TODO Auto-generated method stub
		
		if (systemUserBo.selectUserInfoIsDepartment(SessionUser.getUserId(request), "办公室")) {			
			return mapping.findForward("xingzheng");			
		}  else if (systemUserBo.selectUserInfoIsDepartment(SessionUser.getUserId(request), "党委办公室")) {
			return mapping.findForward("dangwei");
		}
		return mapping.findForward("dangwei");
						
	}
	
}

